/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.discount.api.model.dto.manager;

import cn.hutool.core.bean.BeanUtil;
import com.medusa.gruul.discount.api.entity.FullScaleProduct;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 *
 * 满减活动适用商品
 *
 * @author lcysike
 * @since 2019-12-09
 */
@Data
@ApiModel(value = "新增或修改满减活动适用商品信息DTO")
public class FullScaleProductDto {

    private Long id;

    @ApiModelProperty(value = "满减活动id")
    private Long fullScaleId;

    @ApiModelProperty(value = "商品id")
    @NotBlank(message = "商品id不能为空")
    private Long productId;

    public FullScaleProduct coverFullScaleProduct() {
        FullScaleProduct fullScaleProduct = new FullScaleProduct();
        BeanUtil.copyProperties(this, fullScaleProduct);
        return fullScaleProduct;
    }
}
